package com.aqie.seckill.redis;

import java.util.List;

public interface IRedisService {
    public <T> T get(KeyPrefix prefix, String key,  Class<T> clazz);
    public <T> boolean set(KeyPrefix prefix, String key,  T value);
    public <T> boolean exists(KeyPrefix prefix, String key);
    public boolean delete(KeyPrefix prefix, String key);
    public <T> Long incr(KeyPrefix prefix, String key);
    public <T> Long decr(KeyPrefix prefix, String key);
    public boolean delete(KeyPrefix prefix);
    public List<String> scanKeys(String key);
    public static <T> String beanToString(T value){
        return null;
    }

    public static <T> T stringToBean(String str, Class<T> clazz){
        return null;
    }

}
